﻿<%@ Page Language="C#" MasterPageFile="~/Masterpages/Admin.Master" AutoEventWireup="true"
    CodeBehind="Login.aspx.cs" Inherits="Ryder_US_Website.Presentation.Admin.Login"
    Title="Đăng nhập" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1 class="title">
        Đăng nhập</h1>
    <p>
    </p>
        <script language="javascript" type="text/javascript">
            function validateForm() {
                if (document.getElementById('<%= txtUsername.ClientID %>').value == "" || document.getElementById('<%= txtUsername.ClientID %>').value.length < 1) {
                    alert("Tên đăng nhập không được trống");
                    document.getElementById('<%= txtUsername.ClientID %>').focus();
                }
                else if (document.getElementById('<%= txtPassword.ClientID %>').value == "" || document.getElementById('<%= txtPassword.ClientID %>').value.length < 1) {
                    alert("Mật khẩu không được trống");
                    document.getElementById('<%= txtPassword.ClientID %>').focus();
                }
                else
                    return true;
                return false;
            }
    </script>
    <table style="width: 91%; margin-left: 100px">
        <tr>
            <td colspan="4">
                <p>
                </p>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbUsername" runat="server" Text="Tên đăng nhập:"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td colspan="2" class="style1">
                <asp:TextBox ID="txtUsername" runat="server" Width="250px" Font-Size="Medium"></asp:TextBox>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="4" class="style1">
                <p>
                </p>
            </td>
        </tr>
        <tr>
            <td class="style2">
                <asp:Label ID="lbPassword" runat="server" Text="Mật khẩu:"></asp:Label>
            </td>
            <td class="style1">
                &nbsp;
            </td>
            <td colspan="2" class="style1">
                <asp:TextBox ID="txtPassword" runat="server" Width="250px" Font-Size="Medium" TextMode="Password"></asp:TextBox>
                &nbsp;
            </td>
        </tr>
        <tr>
            <td colspan="4" class="style1">
                <p>
                </p>
            </td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
            <td colspan="2" class="style1">
                <asp:Button ID="btnLogin" runat="server" Text="Đăng nhập" CssClass="button" OnClientClick="return validateForm();"
                    OnClick="btnLogin_Click" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <input type="reset" name="btnReset" class="button" value="Làm lại" />
            </td>
        </tr>
    </table>
</asp:Content>
